@extends('layouts.app')

@section('content')
<div class="content-header">
    <h1>部署日志</h1>
    <ol class="breadcrumb">
      <li><a href="{{ url('/') }}"><i class="fa fa-dashboard"></i> 首页</a></li>
      <li class="active">部署日志</li>
    </ol>
  </div>
<div class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-primary">
                <div class="panel-heading">近7天部署日志（只保留最后一次）</div>

                <div class="panel-body">
                    @foreach($logs as $log)
                        <li>
                            <a href="{{ url('logs/'.$log->env.'/'.base64_encode($log->namespace).'?user='.$log->user) }}">{{ $log->namespace }}  </a>
                            - {{ $log->env }} - {{ $log->user }}
                            <span class="pull-right"> {{ $log->triggered_at }} </span>
                        </li>
                    @endforeach
                </div>
            </div>
        </div>
    </div>
</div>
@endsection